package pokerantani.v2.linematchers;

import java.util.regex.Pattern;

import pokerantani.v2.LineMatcher;
import pokerantani.v2.RE;


public class Header extends LineMatcher {
	static final Pattern pHeader_PS = Pattern.compile("PokerStars Game #" + RE.INT + ":.*");
	static final Pattern pHeader_FTP = Pattern.compile("Full Tilt Poker Game #" + RE.INT + ":.*");
	
	public boolean match(String line) {
		if(match(line, pHeader_PS)) {
			return true;
		}
		if(match(line, pHeader_FTP)) {
			return true;
		}
		return false;
	}
}
